package org.example.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Controller;

@Controller
public interface UserDao {
    @Update("update db5.bankuser set money=money-#{money} where name=#{name}")
    public void TransforMoney(@Param("name") String name, @Param("money") int money);
    @Update("update db5.bankuser set money=money+#{money} where name=#{name}")
    public void getMoney(@Param("name") String name, @Param("money") int money);

}
